package com.lagou.controller;

import com.lagou.service.TestService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author bobcheng
 * @date 2020/6/15
 */
@RestController
@RequestMapping("test")
public class TestController {

    @Reference
    private TestService testService;

    @GetMapping
    public Object test() {
        testService.test();
        return "success";
    }
}
